package com.kele.demo.utils;

import com.kele.demo.config.EnvironmentModule;

/**
 * @author chunhui.li
 * @date 2022/2/12 16:11
 * @Description
 * @ClassName GetModuleEnvUtil
 */
public class GetModuleEnvUtil {

    public static String getEnvServiceId(){
        EnvironmentModule environmentModule = BeanUtil.getBeanByName("serviceEnv",EnvironmentModule.class);
        return environmentModule.getServiceId();
    }

    public static String getEnvServerPort(){
        EnvironmentModule environmentModule = BeanUtil.getBeanByName("serviceEnv",EnvironmentModule.class);
        return environmentModule.getPort();
    }
}
